﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="原料出库单.aspx.cs" Inherits="syc.Store.原料出库单" %>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript" language="javascript" src="/common.js"></script>
<form id="form1" runat="server">
<div id="wintop" class="wintop">原料出库单</div>
<asp:Panel ID="Panel1" runat="server" CssClass="panel">

    <asp:Label ID="BillID" runat="server" Text="-1" Visible="false"></asp:Label>
    <asp:Label ID="MainID" runat="server" Text="0" Visible="false"></asp:Label>
    
    <asp:Button ID="Button_Check" runat="server" Text="计算金额" class="button" 
        UseSubmitBehavior="false" onclick="Button_Check_Click" />
    
    <asp:Button ID="Button_Save" runat="server" Text="保 存" class="button" 
        UseSubmitBehavior="false" onclick="Button_Save_Click" />
    <input type="button" value="关 闭" class="button" onclick="parent.swin_close();" />
</asp:Panel>

<asp:Panel ID="Panel3" runat="server" CssClass="panel" GroupingText="库存选择">
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
    ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" >
    </asp:SqlDataSource>
    
    <asp:DropDownList ID="GangJi" runat="server" DataSourceID="SqlDataSource2" DataTextField="钢级" DataValueField="ID" Visible="false" >
    </asp:DropDownList>
    
    <asp:DropDownList ID="GuiGe" runat="server" DataSourceID="SqlDataSource2" DataTextField="规格" DataValueField="ID" Visible="false" >
    </asp:DropDownList>
    
    <asp:DropDownList ID="DanWei" runat="server" DataSourceID="SqlDataSource2" DataTextField="单位" DataValueField="ID" Visible="false" >
    </asp:DropDownList>
    
    <span style="display:inline-block;width:200px;">原料类别：<asp:DropDownList 
    ID="YuanLiaoID" runat="server" 
    DataSourceID="SqlDataSource2" DataTextField="品名" DataValueField="ID" 
    Width="110px" AutoPostBack="True" 
    onselectedindexchanged="YuanLiaoID_SelectedIndexChanged">
    </asp:DropDownList></span>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SCMConnectionString1 %>" ></asp:SqlDataSource>
    <span style="display:inline-block;width:200px;">使用单位：<asp:DropDownList 
        ID="FenChang" runat="server" Width="110px" AutoPostBack="True" 
        onselectedindexchanged="FenChang_SelectedIndexChanged">
        <asp:ListItem Value="1">一分厂</asp:ListItem>
        <asp:ListItem Value="2">二分厂</asp:ListItem>
        <asp:ListItem Value="3">三分厂</asp:ListItem>
        <asp:ListItem Value="4">四分厂</asp:ListItem>
        <asp:ListItem Value="5">五分厂</asp:ListItem>
    </asp:DropDownList></span>
    
    <span style="display:inline-block;width:200px;">存储库区：<asp:DropDownList ID="KuQu" Width="110px" 
                runat="server" AutoPostBack="True" 
        onselectedindexchanged="KuQu_SelectedIndexChanged" 
        DataSourceID="SqlDataSource1" DataTextField="区域" DataValueField="区域">
            </asp:DropDownList>
        
    
    </span>
</asp:Panel>
<asp:Panel ID="Panel4" runat="server" CssClass="panel">
    <span style="display:inline-block;width:180px;">
    总支数：<asp:Label ID="ZhiShu" runat="server" Text="0"></asp:Label></span>
    <span style="display:inline-block;width:180px;">
    总重量：<asp:Label ID="ZhongLiang" runat="server" Text="0"></asp:Label></span>
    <span style="display:inline-block;width:180px;">
    剩余支数：<asp:Label ID="YuZhi" runat="server" Text="0"></asp:Label></span>
    <span style="display:inline-block;width:180px;">
    剩余重量：<asp:Label ID="YuZhong" runat="server" Text="0"></asp:Label></span>
    
</asp:Panel>

<asp:Panel ID="Panel_Msg" runat="server" CssClass="panel2">
    <asp:Label ID="Message" runat="server" Text="·准备就绪" CssClass="prompt"></asp:Label>
</asp:Panel>

<asp:Panel ID="Panel2" runat="server">
<script>putBillHead();</script>

<table border="0" cellpadding="0" style="border-collapse: collapse;text-align:center;font-size:14px;">
	<tr height="30">
		<td colspan="8" style="font-size:20px;"><b>专用原（辅）料出库单</b></td>
	</tr>
	<tr height="20">
		<td colspan="8" align="left" style="padding-left:15px;">编码：SYC/ZJ-WL-13</td>
	</tr>
	<tr height="20">
		<td colspan="2" align="left" style="padding-left:15px;">使用单位：<%=this.FenChang.SelectedItem.Text %></td>
		<td colspan="3"><asp:TextBox ID="Date1" runat="server" CssClass="intxt1" Width="115px"></asp:TextBox><img alt="" src="/Icons/29.png" align="middle" onclick="makecalendar(document.getElementById('Date1').value, document.getElementById('Date1'));" /></td>
		<td colspan="3" align="right" style="color:red;padding-right:15px;">No.<asp:TextBox ID="DanHao" 
                        runat="server" CssClass="intxt1" ForeColor="Red" Width="100px" Text="00"></asp:TextBox></td>
	</tr>
	<tr>
		<td width="120" class="solid" height="32">材料名称(钢级)</td>
		<td width="100" class="solid">规 格</td>
		<td width="80" class="solid">批次(编号)</td>
		<td width="50" class="solid">单 位</td>
		<td width="70" class="solid">数 量</td>
		<td width="70" class="solid">重 量</td>
		<td width="90" class="solid">单 价</td>
		<td width="100" class="solid">金 额</td>
	</tr>
	<tr>
		<td class="solid" height="26"><asp:Label ID="Label_YuanLiao" runat="server" Text=""></asp:Label></td>
		<td class="solid"><asp:Label ID="Label_GuiGe" runat="server" Text=""></asp:Label></td>
		<td class="solid">　</td>
		<td class="solid"><asp:Label ID="Label_DanWei" runat="server" Text=""></asp:Label></td>
		<td class="solid"><asp:TextBox ID="ShuLiang1" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="ZhongLiang1" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="DanJia1" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:Label ID="JinE1" runat="server" Text=""></asp:Label></td>
	</tr>
	<tr>
		<td class="solid" height="26">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid"><asp:TextBox ID="ShuLiang2" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="ZhongLiang2" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="DanJia2" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:Label ID="JinE2" runat="server" Text=""></asp:Label></td>
	</tr>
	<tr>
		<td class="solid" height="26">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid"><asp:TextBox ID="ShuLiang3" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="ZhongLiang3" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="DanJia3" runat="server" CssClass="intxt1" ></asp:TextBox></td>
		<td class="solid"><asp:Label ID="JinE3" runat="server" Text=""></asp:Label></td>
	</tr>
	<tr>
		<td class="solid" height="26">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid"><asp:TextBox ID="ShuLiang4" runat="server" CssClass="intxt1"></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="ZhongLiang4" runat="server" CssClass="intxt1"></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="DanJia4" runat="server" CssClass="intxt1"></asp:TextBox></td>
		<td class="solid"><asp:Label ID="JinE4" runat="server" Text=""></asp:Label></td>
	</tr>
	<tr>
		<td class="solid" height="26">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid">　</td>
		<td class="solid"><asp:TextBox ID="ShuLiang5" runat="server" CssClass="intxt1"></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="ZhongLiang5" runat="server" CssClass="intxt1"></asp:TextBox></td>
		<td class="solid"><asp:TextBox ID="DanJia5" runat="server" CssClass="intxt1"></asp:TextBox></td>
		<td class="solid"><asp:Label ID="JinE5" runat="server" Text=""></asp:Label></td>
	</tr>
	<tr height="26">
		<td colspan="8" align="left">
		<span style="display:inline-block;width:150px;margin-left:15px;">仓储主管：</span>
		<span style="display:inline-block;width:150px;margin-left:5px;">保管员：</span>
		<span style="display:inline-block;width:150px;margin-left:5px;">使用单位主管：</span>
		<span style="display:inline-block;width:150px;margin-left:5px;">领用人：</span>
		</td>
	</tr>
</table>

<script>putBillFoot();</script>

</asp:Panel>

</form>

<script>
    var textboxs = document.getElementsByTagName("input");
    for (var i = 0; i < textboxs.length; i++) {
        if (textboxs[i].className == "pageturn" || textboxs[i].className == "intxt1" || textboxs[i].className == "intxt2") {
            textboxs[i].onfocus = function(e) { this.select(); };
        }
    }
</script>
</body>
</html>
